import axios from 'axios';

const goodsAPIs = {
  findGoods() {
    return axios({
      url: '/goods/findGoods',
      method: 'GET',
    });
  },
  findGoodsById(id) {
    return axios({
      url: '/goods/findGoodsById',
      method: 'POST',
      data: {
        id,
      },
    });
  },
  deleteGoods(id) {
    return axios({
      url: '/goods/deleteGoods',
      method: 'POST',
      data: {
        id,
      },
    });
  },
};
export default goodsAPIs;
